home *** CD-ROM | disk | FTP | other *** search
- Path: news.clark.net!usenet
- From: yom@clark.net (yom)
- Newsgroups: comp.lang.c
- Subject: Re: Sorting a directory
- Date: 23 Feb 1996 02:43:42 GMT
- Organization: Your Organization
- Message-ID: <4gj9ku$dgp@clarknet.clark.net>
- References: <4gbbi9$c7s@news1.radix.net>
- NNTP-Posting-Host: yom.clark.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- Link to libucb library in /usr/ucblib directory. (-L/usr/ucblib -lucb)
-
- Song (yom@clark.net)
-
- In article <4gbbi9$c7s@news1.radix.net>, jfw@radix.net says...
- >
- >I want to retrieve a sorted list of files in a directory.
- >I am using UNIX, on an HP, and I found by reading the
- >manpages I could use scandir() and alphasort() to perform the task
- >(these seem to be old BSD functions). When
- >I try to move the same code over to a SUN, the linker
- >(for the SunOS 5.4 cc) can't find these functions.
- >Is there a library that I can link with that provides them?
- >Or have they been dropped as the UNIX world moves from
- >BSD to System V? Is there something in the C library that
- >I should be using instead?
- >
- >Sincerely,
- >
- >Jim Ward
- >
-
-